/**
 * Created by root on 2018-04-25.
 */
function firstCtl($scope){
    $scope.h1={
        a1:'hello world'
    };
    $scope.h2=100;
    $scope.h3=0;
    $scope.show = false;

    $scope.double=function(val){
        $scope.h3 = val*2
        $scope.show = true;
    };
}

function MyController($scope, greeter) {
    $scope.sayHello = function() {
        greeter.greet('Hello World');
    };
}


